package com.koron.dynamic.service.impl;

import com.koron.bean.app.AppBean;
import com.koron.dynamic.mapper.AppDataSourceMapper;
import com.koron.dynamic.service.AppDataSourceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * @ClassName AppDataSourceService
 * @description
 * @Author zhouj
 * @Date 2021/7/14 9:56
 */
@Transactional
@Service
public class AppDataSourceServiceImpl implements AppDataSourceService {

    @Autowired
    AppDataSourceMapper appDataSourceMapper;

    @Override
    public AppBean findDataSourceByKey(String mark) {
        return appDataSourceMapper.findDataSourceByKey(mark);
    }

    @Override
    public String queryData(String id) {
        return appDataSourceMapper.queryData(id);
    }
}
